<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/7/31
 * Time: 20:51
 */

namespace app\api\controller\v1;
use think\Controller;
use app\api\service\Token as ServiceToken;

class BaseController extends Controller
{
    //定义是否为用户的权限
    protected function needPrimaryScope()
    {
        ServiceToken::checkPrimaryScope();
    }
    //定义为是否为管理员的权限
    protected function needExclusiveScope()
    {
        ServiceToken::checkExclusiveScope();
    }
}